// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 保存平台客服信息 POST /platform/config/platform/customer */
export async function wechatCustomerCreate1(
  body: API.PlatformWechatCustomerConfigDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/config/platform/customer`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 平台客服详情 GET /platform/config/platform/customer/detail */
export async function wechatCustomerDetail1(options?: { [key: string]: any }) {
  return request<API.BaseResponsePlatformWechatCustomerConfigDto>(
    `/barter-user/platform/config/platform/customer/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 保存隐私政策 POST /platform/config/privacyPolicy */
export async function privacyPolicyCreate1(
  body: API.PlatformConfigDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/config/privacyPolicy`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 隐私政策详情 GET /platform/config/privacyPolicy/detail */
export async function privacyPolicyDetail1(options?: { [key: string]: any }) {
  return request<API.BaseResponsePlatformConfigDto>(
    `/barter-user/platform/config/privacyPolicy/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 保存注册协议 POST /platform/config/userAgreement */
export async function userAgreementCreate1(
  body: API.PlatformConfigDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/config/userAgreement`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 注册协议详情 GET /platform/config/userAgreement/detail */
export async function userAgreementDetail1(options?: { [key: string]: any }) {
  return request<API.BaseResponsePlatformConfigDto>(
    `/barter-user/platform/config/userAgreement/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}
